﻿using UnityEngine;

namespace GameObjectScript.Weapon
{
    public class WeaponShort : WeaponBase
    {
        private void OnTriggerEnter2D(Collider2D other)
        {
            if (other.CompareTag("Enemy"))
            {
                Debug.Log("Weapon took " + weapon.damage + " damage");
                other.GetComponent<EnemyHealth>().TakeDamage(weapon.damage);
                circleCollider2D.enabled = false;
            }
        }
    }
}